package cn.iot.sys.dao;

import cn.iot.sys.entity.Grade;
import cn.iot.sys.vo.AddForm;
import cn.iot.sys.vo.GradeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GradeDao {
    List<Grade> list( GradeDto grade );
    int  getCount( GradeDto grade );

    void add ( AddForm addon );

    void update ( AddForm addon );

    int delete ( int id );

    void qiDong (@Param ( "grade" ) Grade[] addon );
    void jinDong (@Param ( "grade" ) Grade[] addon );
}
